package com.naiterui.ehp.bs.doctor.repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bp.domain.DrCustomCharge;
import org.springframework.stereotype.Repository;

/**
 * <P>功能描述 : 医生自定义服务收费DAO实现 </P>
 * <P>File name : DrCustomChargeDaoImpl </P>
 * <P>Author : 王泽浩 </P>
 * <P>E-Mail : 1028625100@qq.com </P>
 * <P>Date : 2017/3/30 上午10:51</P>
 */
@Repository
public interface IDrCustomChargeRepository extends BaseJpaRepository<DrCustomCharge, Long> {


    /**
     * <P>功能描述 : 通过ID获取自定义服</P>
     * <P>Method Name : getCustomChargeByPatientId </P>
     * <P>Author : 王泽浩 </P>
     * <P>E-Mail : 1028625100@qq.com </P>
     * <P>Date : 2017-03-30 21:07:12</P>
     *
     * @param doctorId       医生ID
     * @param customChargeId 自定义服务ID
     *
     * @return 自定义服务
     *
     * @since 2.7
     */
    DrCustomCharge findFirstByIdAndDoctorId(long customChargeId, long doctorId);


}
